
<?php
require("cfg.php");
require("function.php");
if (isset($_POST['list_id']) && $_POST['list_id']) {
	$list_id=$_POST['list_id'];
}
else {
	$list_id=1;
}
if (isset($_POST['user_name']) && $_POST['user_name']) {
	$user=$_POST['user_name'];
}
else {
	$user="test_user";
}
//var_dump($_POST);
$sql="SELECT `song_name`, `song_path` FROM `user_list_record` WHERE `list_id` = $list_id AND `user_name` = '$user'";
$query=mysql_query($sql);
while ($row = mysql_fetch_array($query)) {
	$song_path=iconv("gb2312","utf-8",$row['song_path']);
	echo "$song_path";
	echo("*");
	$song_name=iconv("gb2312","utf-8",$row['song_name']);
	echo "$song_name";

	echo("|");
}

?>